import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { ImgMaterialRoutingModule } from './img-material-routing.module';
import { ImgMaterialListComponent } from './img-material-list/img-material-list.component';
import { ImgMaterialEditComponent } from './img-material-edit/img-material-edit.component';
import { ImgMaterialService } from '@core/routes-services/img-material.service';
import { MaterialTypeListComponent } from './material-type-list/material-type-list.component';
import { MaterialTypeEditComponent } from './material-type-edit/material-type-edit.component';

const COMPONENTS = [
  ImgMaterialListComponent,
  MaterialTypeListComponent];
const COMPONENTS_NOROUNT = [
  ImgMaterialEditComponent,
  MaterialTypeEditComponent];

@NgModule({
  imports: [
    SharedModule,
    ImgMaterialRoutingModule
  ],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT
  ],
  entryComponents: COMPONENTS_NOROUNT,
  providers:[
    ImgMaterialService
  ]
})
export class ImgMaterialModule { }
